package com.ecoolex.ying.space.core.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.UserLikeRecordMapper;
import com.ecoolex.ying.space.pojo.UserLikeAndFavoriteDTO;

public interface UserLikeRecordDAO extends UserLikeRecordMapper {
	
	long countByContentAuthorUserId(@Param("contentAuthorUserId") Integer contentAuthorUserId,@Param("now") Date now);
	
	List<UserLikeAndFavoriteDTO> queryByContentAuthorUserId(@Param("contentAuthorUserId") Integer contentAuthorUserId, @Param("now") Date now ,@Param("sorts") String sorts, @Param("page") Page page);

	long countByContentAuthorUserIdAndReadTime(@Param("contentAuthorUserId") Integer contentAuthorUserId,@Param("now") Date now,@Param("newReadTime") Date newReadTime);
}